import request from "@/request/api";

//检修申请单接口
//1.检修申请单查询接口
export function overhaulApplicationList(data) {
  return request({
    url: "/eam-service-order/application/page",
    method: "get",
    params: data,
  });
}
//1.检修申请单详情
export function overhaulApplicationDetail(data) {
  return request({
    url: "/eam-service-order/application",
    method: "get",
    params: data,
  });
}
//2、检修申请单新增或修改接口
export function addOrUpdateOverhaulApplication(data) {
  return request({
    url: "/eam-service-order/application",
    method: "post",
    data: data,
  });
}
//2、、检修申请单删除接口
export function deleteOverhaulApplication(data) {
  return request({
    url: "/eam-service-order/application",
    method: "delete",
    params: data,
  });
}
//2 延时提交
export function delaySubmit(data) {
  return request({
    url: "/eam-service-order/application/delaySubmit",
    method: "post",
    data: data,
  });
}
//作废数据
export function voidData(data) {
  return request({
    url: "/eam-service-order/application/invalidate",
    method: "put",
    params: data,
  });
}

//查询批复记录
export function queryApprovalRecord(data) {
  return request({
    url: "/eam-service-order/application/listDelay",
    method: "get",
    params: data,
  });
}

//查询备注记录
export function queryRemarkRecord(data) {
  return request({
    url: "/eam-service-order/application/listDesc",
    method: "get",
    params: data,
  });
}
//保存备注记录
export function saveRemarkRecord(data) {
  return request({
    url: "/eam-service-order/application/saveDesc",
    method: "post",
    data: data,
  });
}
//提交数据
export function submitInfo(data) {
  return request({
    url: "/eam-service-order/application/submit",
    method: "post",
    data: data,
  });
}
